
#ifndef HTTPTEST_H
#define HTTPTEST_H

#include <QObject>
#include <QDebug>
#include <QHttpMultiPart>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QMetaObject>
#include <QEventLoop>
#include <QJsonDocument>            //以下是json数据传送所需头文件
#include <QJsonParseError>
#include <QJsonObject>
#include <QJsonValue>
#include <QJsonArray>
#include <QFile>
#include <QtQml>  //标记
class Serivce : public QObject
{
    Q_OBJECT
    QML_ELEMENT  //标记

public:
    explicit Serivce(QObject *parent = nullptr);
    void sendGetRequest();
    void sendPostRequest();
    QString resultGet;
    QString resultPost;




public slots:
    void receiveReplyGet(QNetworkReply *reply);
    void receiveReplyPost(QNetworkReply *reply);



};

#endif // SERIVCE_H
